package dao;

import java.util.ArrayList;
import java.util.List;

import model.User;

public class UserDao 
{
	public static List<User> users = new ArrayList<User>();
	public static int identity=0;
	public void add(User user)
	{
		identity ++;
		user.setId(identity);
		users.add(user);
	}
	public List findAll()
	{
		/*List<User> users = new ArrayList<User>();
		User u = new User();
		u.setId(1);
		u.setUserName("张三");
		u.setSex("男");
		u.setPhone("123456");
		u.setQq("654321");
		u.setAddress("北京");
		users.add(u);
		
		u = new User();
		u.setId(1);
		u.setUserName("李四");
		u.setSex("男");
		u.setPhone("123456");
		u.setQq("654321");
		u.setAddress("上海");
		users.add(u);*/
		
		return users;
	}

}
